<!-- 框架合同申请 -->
<template>
    <a-card :bordered="false">
      <!-- 查询区域 -->
      <div class="table-page-search-wrappe">
        <a-form layout="inline" @keyup.enter.native="handleQuery">
          <a-row :gutter="24">
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item label="单据来源">
              <j-dict-select-tag placeholder="请选择单据来源" @input="handleDocumentSource" v-model="queryParam.permissionType" dictCode="permission_type"/>
            </a-form-item>
          </a-col>
          <a-col :xl="6" :lg="7" :md="8" :sm="24" v-if="queryParam.permissionType == 3">
            <a-form-item label="选择部门">
              <J-select-multiple
                placeholder="请选择选择部门"
                :options="getDepartName"
                showId="id"
                v-model="queryParam.deptIds"/>
            </a-form-item>
          </a-col>
          <a-col :xl="6" :lg="7" :md="8" :sm="24" v-if="queryParam.permissionType == 4">
            <a-form-item
              label="选择团队"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
            >
              <J-select-multiple
                placeholder="请选择选择团队"
                :options="getTeamName"
                showId="id"
                v-model="queryParam.teamIds"/>
            </a-form-item>
          </a-col>
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item label="单据编号" :labelCol="labelCol" :wrapperCol="wrapperCol" class="form-item">
              <j-input placeholder="请输入单据编号" v-model="queryParam.htbh"></j-input>
            </a-form-item>
          </a-col>
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item label="合同名称" :labelCol="labelCol" :wrapperCol="wrapperCol" class="form-item">
              <j-input placeholder="请输入合同名称" v-model="queryParam.htmc"></j-input>
            </a-form-item>
          </a-col>
          <a-col  :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="业绩归属年度">
              <j-dict-select-tag
              type="list"
              v-model="queryParam.yjgsnd"
              dictCode="yjgsnd"
              placeholder="请选择业绩归属年度"
            />
          </a-form-item>
          </a-col>
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item label="签订日期" :labelCol="labelCol" :wrapperCol="wrapperCol"  class="form-item">
              <a-range-picker
                format="YYYY-MM-DD"
                :placeholder="['开始日期', '结束日期']"
                v-model="qdrqRange"
                @change="(dates, dateStrs) => { queryParam.qdrq_begin = dateStrs[0]; queryParam.qdrq_end = dateStrs[1] }"/>
              </a-form-item>
          </a-col>
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item label="签订单位" :labelCol="labelCol" :wrapperCol="wrapperCol">
              <select-Company-input v-model="queryParam.qddw" placeholder="请选择签订单位"/>
            </a-form-item>
          </a-col>
            <a-col :xl="6" :lg="7" :md="8" :sm="24">
              <a-form-item label="业主单位" :labelCol="labelCol" :wrapperCol="wrapperCol">
              <!-- <select-customer-input v-model="queryParam.ownerUnit" placeholder="请选择业主单位"/> -->
              <select-customer-input v-model="queryParam.yzdw" placeholder="请选择业主单位" commercialType="1" />
            </a-form-item>
            </a-col>
            <a-col :xl="6" :lg="7" :md="8" :sm="24">
              <a-form-item label="经营团队" :labelCol="labelCol" :wrapperCol="wrapperCol">
                <select-team-input v-model="queryParam.jytd" :tdlx="1" :teamType="0"/>
              </a-form-item>
            </a-col>
            <a-col :xl="6" :lg="7" :md="8" :sm="24">
              <a-form-item label="审核状态" :labelCol="labelCol" :wrapperCol="wrapperCol">
                  <j-dict-select-tag placeholder="请选择审核状态" v-model="queryParam.bpmStatus" dictCode="bpm_status"/>
                </a-form-item>
            </a-col>
            <a-col :xl="6" :lg="7" :md="8" :sm="24">
              <a-form-item label="申请人" :labelCol="labelCol" :wrapperCol="wrapperCol">
                <select-user-by-dep :multi="false" v-model="queryParam.proposer"/>
              </a-form-item>
          </a-col>
            <a-col :xl="6" :lg="7" :md="8" :sm="24">
              <a-form-item label="申请部门" :labelCol="labelCol" :wrapperCol="wrapperCol">
                <j-select-depart v-model="queryParam.handlerDeptId" ></j-select-depart>
              </a-form-item>
            </a-col>
          <!-- <template v-if="toggleSearchStatus"></template> -->
          <a-col style="float: left;overflow: hidden;" :xl="6" :lg="7" :md="8" :sm="24">
            <span class="table-page-search-submitButtons">
              <a-button type="primary" @click="handleQuery" icon="search">查询</a-button>
              <a-button @click="qdrqRange=[],allSearchReset()" icon="reload" style="margin-left: 8px;">重置</a-button>
              <!-- <a @click="handleToggleSearch" style="margin-left: 8px">
                {{ toggleSearchStatus ? '收起' : '展开' }}
                <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
              </a> -->
            </span>
          </a-col>
        </a-row>
        </a-form>
      </div>
      <!-- 查询区域-END -->
      <!-- 操作按钮区域 -->
      <div class="table-operator">
        <a-button @click="handleAdd" type="primary" icon="plus" :disabled="isDisabledAuth('erpOmcContractManager:add')">
          申请
        </a-button>
        <a-button @click="handleAdd2" type="primary" icon="plus" style="margin-left: 8px">变更</a-button>
        <!-- 高级查询区域 -->
        <a-dropdown v-if="selectedRowKeys.length > 0" style="margin-left: 30px">
          <a-menu slot="overlay">
            <a-menu-item key="1" @click="batchDel" :disabled="isDisabledAuth('erpOmcContractManager:delete')">
              <a-icon type="delete"/>
              删除
            </a-menu-item>
          </a-menu>
          <a-button style="margin-left: 8px"> 批量操作
            <a-icon type="down"/>
          </a-button>
        </a-dropdown>
        <a-popover title="自定义列" trigger="click" placement="leftBottom">
          <template slot="content">
            <a-checkbox-group @change="onColSettingsChange" v-model="settingColumns" :defaultValue="settingColumns">
              <a-row>
                <template v-for="(item,index) in defColumns">
                  <template v-if="item.key!='rowIndex'&& item.dataIndex!='action'">
                    <a-col :span="12" :key="index">
                      <a-checkbox :value="item.dataIndex">
                        <ellipsis :length="18">{{ item.title }}</ellipsis>
                      </a-checkbox>
                    </a-col>
                  </template>
                </template>
              </a-row>
            </a-checkbox-group>
          </template>
          <a style="float: right;">
            <a-icon type="setting" :style="iconStyle"/>
          </a>
        </a-popover>
      </div>
      <!-- table区域-begin -->
      <div>
        <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
          <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a
            style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
          <a style="margin-left: 24px" @click="onClearSelected">清空</a>
        </div>
  
        <a-table
          ref="table"
          size="middle"
          :scroll="{x:scrollX}"
          :components="draggableComponent"
          bordered
          rowKey="id"
          :columns="columns"
          :dataSource="dataSource"
          :pagination="ipagination"
          :loading="loading"
          :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, getCheckboxProps: (record) => { return { props: { disabled: record.bpmStatus !== '1' } } } }"
          class="j-table-force-nowrap"
          :customRow="customRow"
          @change="handleTableChange">
          <a slot="xmmc" slot-scope="text, record" @click="onDetail(record.xmmc)">{{ text }}</a>
          <span slot="notify" slot-scope="text, record">
            <a-icon
              title="催办提醒"
              v-if="record.taskUrge"
              theme="twoTone"
              twoToneColor="#eb2f96"
              @click="taskNotifyMe(flowCode,record.id)"
              type="notification"/>
            {{ text }}
          </span>
          <template slot="status" slot-scope="status">
            <a-badge :status="status | statusTypeFilter" :text="status | statusFilter"/>
          </template>
          <template slot="htmlSlot" slot-scope="text">
            <div v-html="text"></div>
          </template>
          <template slot="imgSlot" slot-scope="text">
            <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
            <img
              v-else
              :src="getImgView(text)"
              height="25px"
              alt=""
              style="max-width:80px;font-size: 12px;font-style: italic;"/>
          </template>
          <template slot="fileSlot" slot-scope="text">
            <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
            <a-button
              v-else
              :ghost="true"
              type="primary"
              icon="download"
              size="small"
              @click="downloadFile(text)">
              下载
            </a-button>
          </template>
          <a slot="htmc" :title="text" slot-scope="text, record" @click="getDetail(record.id)">{{ text }}</a>
          <span slot="action" slot-scope="text, record">
            <template v-if="record.bpmStatus === '1'">
              <a-button
                class="ruleButton"
                :ghost="true"
                type="primary"
                icon="edit"
                @click="handleEdit(record)"
                :disabled="isDisabledAuth('erpOmcContractManager:edit')"/>
              <a-divider type="vertical"/>
              <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
                <a-button
                  class="ruleButton"
                  :ghost="true"
                  type="primary"
                  icon="delete"
                  :disabled="isDisabledAuth('erpOmcContractManager:delete')"/>
              </a-popconfirm>
            </template>
            <template v-else-if="showBtn(record.bpmStatus)&&queryParam.bizTaskType=='1'">
              <a-button type="primary" size="small" @click="handleProcess(record)">办理</a-button>
              <a-divider type="vertical"/>
            </template>
            <template v-else-if="queryParam.bizTaskType=='2' && showBtn(record.bpmStatus)">
              <a-button type="primary" size="small" @click="taskNotify(flowCode,record.id)">催办</a-button>
              <a-divider type="vertical"/>
              <a-popconfirm title="确定要作废吗?" @confirm="() => invalidProcess(record)">
                <a-button
                  type="primary"
                  size="small"
                  :disabled="isDisabledAuth('erpOmcContractManager:invalidProcess')">
                  作废流程
                </a-button>
              </a-popconfirm>
              <a-divider type="vertical"/>
            </template>
            <template v-if="record.bpmStatus !== '1'">
              <a-button type="primary" size="small" @click="handleTrack(record)" :disabled="isDisabledAuth('erpOmcContractManager:viewTrack')">审批进度</a-button>
            </template>
          </span>
        </a-table>
      </div>
      <ErpOmcContractApplicationModel :contract-type="'1'" ref="modalForm" @ok="modalFormOk"></ErpOmcContractApplicationModel>
      <!-- 项目详情开始 -->
      <erp-project-report-modal ref="projectModalForm"></erp-project-report-modal>
      <!-- 项目详情结束 -->
      <bpm-biz-task-deal-modal
        ref="taskDealModal"
        :path="path"
        :formData="formData"
        @ok="handleOk"></bpm-biz-task-deal-modal>
      <bpm-process-track-modal ref="bpmProcessTrackModal"></bpm-process-track-modal>
      <biz-task-notify-modal ref="taskNotifyModal"></biz-task-notify-modal>
      <biz-task-notify-me-modal ref="taskNotifyMeModal"></biz-task-notify-me-modal>
      <process-config-modal ref="processConfig" @ok="handleSuccess" @close="handleClose"></process-config-modal>
    </a-card>
  </template>
  <script>
  import '@/assets/less/TableExpand.less'
  import { mixinDevice } from '@/utils/mixin'
  import { JeecgBpmListMixin } from '@/mixins/JeecgBpmListMixin'
  import BpmBizTaskDealModal from '@/views/modules/bpmbiz/common/BpmBizTaskDealModal.vue';
  import BpmProcessTrackModal from '@/views/modules/bpmbiz/common/BpmProcessTrackModal.vue';
  import BizTaskNotifyModal from '@/views/modules/bpmbiz/common/BizTaskNotifyModal.vue';
  import BizTaskNotifyMeModal from '@/views/modules/bpmbiz/common/BizTaskNotifyMeModal.vue';
  import ErpOmcContractApplicationModel from './ErpOmcContractApplicationModel'
  import { DisabledAuthFilterMixin } from '@/mixins/DisabledAuthFilterMixin'
  import SelectCustomerInput from '@/views/scy/components/SelectCustomerInput'
  import SelectTeamInput from '@/views/scy/components/SelectTeamInput'
  import SelectProjectInput from '@/views/scy/components/SelectProjectInput'
  import SelectUserByDep from '@/views/scy/components/SelectUserByDep'
  import ProcessConfigModal from '@/views/scy/components/ProcessConfigModal'
  import SelectCompanyInput from '@/views/scy/components/SelectCompanyInput'
  import Ellipsis from '@/components/Ellipsis'
  import { getAction } from '@/api/manage'
  import ErpProjectReportModal from '@/views/erp/report/project/modules/ErpProjectReportModal'
  export default {
    name: 'ErpOmcFrameworkContractApplication',
    mixins: [JeecgBpmListMixin, mixinDevice, DisabledAuthFilterMixin],
    components: {
      BpmBizTaskDealModal,
      ErpOmcContractApplicationModel,
      BpmProcessTrackModal,
      BizTaskNotifyModal,
      BizTaskNotifyMeModal,
      SelectCustomerInput,
      SelectTeamInput,
      SelectProjectInput,
      SelectUserByDep,
      ProcessConfigModal,
      SelectCompanyInput,
      Ellipsis,
      ErpProjectReportModal
    },
    data() {
      return {
        queryParam: {
          htlx: '3',
          isOldSystem: '!1' // 老系统合同标识
        },
        labelCol:{
          xs: { span: 24 },
          sm: { span: 5 },
        },
        wrapperCol:{
          xs: { span: 24 },
          sm: { span: 19 },
        },
        description: '合同管理管理页面',
        // 表头
        columns: [],
        // 列设置
        settingColumns: [],
        // 列定义
        defColumns: [
          {
            title: '序号',
            align: 'center',
            key: 'rowIndex',
            // fixed: 'left',
            width: 60,
            customRender: function (t, r, index) {
              return parseInt(index) + 1;
            }
          },
          {
            title: '单据编号',
            align: 'center',
            dataIndex: 'htbh',
            // fixed: 'left',
            width: 200,
            ellipsis: true
          },
          {
            title: '合同名称',
            align: 'center',
            dataIndex: 'htmc',
            // fixed: 'left',
            width: 150,
            ellipsis: true,
            scopedSlots: { customRender: 'htmc' }
          },
          // {
          //   title: '项目编号',
          //   align: 'center',
          //   dataIndex: 'xmbh',
          //   ellipsis: true,
          //   width: 100
          // },
          // {
          //   title: '项目名称',
          //   align: 'center',
          //   dataIndex: 'xmmc_dictText',
          //   scopedSlots: { customRender: 'xmmc' },
          //   ellipsis: true,
          //   width: 100
          // },
  
          {
            title: '业绩归属年度',
            align: 'center',
            dataIndex: 'yjgsnd_dictText',
            ellipsis: true,
            width: 100
          },
          {
            title: '签订日期',
            align: 'center',
            dataIndex: 'qdrq',
            ellipsis: true,
            width: 100,
            customRender: function (text) {
              return !text ? '' : (text.length > 10 ? text.substr(0, 10) : text)
            }
          },
          {
            title: '合同类型',
            align: 'center',
            dataIndex: 'htlx_dictText',
            ellipsis: true,
            width: 100
          },
          {
            title: '本次合同额(元)',
            align: 'center',
            dataIndex: 'bchte',
            ellipsis: true,
            width: 100
          },
          {
            title: '签订单位',
            align: 'center',
            dataIndex: 'qddw_dictText',
            ellipsis: true,
            width: 200
          },
          {
            title: '业主单位',
            align: 'center',
            dataIndex: 'yzdw_dictText',
            ellipsis: true,
            width: 265
          },
          {
            title: '经营团队',
            align: 'center',
            dataIndex: 'jytd_dictText',
            ellipsis: true,
            width: 210
          },
          {
            title: '申请人',
            align: 'center',
            dataIndex: 'createBy_dictText',
            ellipsis: true,
            width: 100
          },
          {
            title: '申请部门',
            align: 'center',
            dataIndex: 'sysOrgCode_dictText',
            ellipsis: true,
            width: 100
          },
          {
            title: '类型',
            align: 'center',
            dataIndex: 'lx_dictText',
            ellipsis: true,
            width: 100
          },
          {
            title: '审核状态',
            align: 'center',
            dataIndex: 'bpmStatus_dictText',
            ellipsis: true,
            width: 100,
            scopedSlots: { customRender: 'bpmStatus' }
            // fixed: 'right',
            // width: 90
          },
          {
            title: '操作',
            dataIndex: 'action',
            align: 'center',
            fixed: 'right',
            width: 160,
            scopedSlots: {
              filterDropdown: 'filterDropdown',
              filterIcon: 'filterIcon',
              customRender: 'action'
            }
          }
        ],
        url: {
          list: '/api/erp/omc/contractmanager/erpOmcContractManager/isolationList',
          delete: '/api/erp/omc/contractmanager/erpOmcContractManager/delete',
          deleteBatch: '/api/erp/omc/contractmanager/erpOmcContractManager/deleteBatch',
          exportXlsUrl: '/api/erp/omc/contractmanager/erpOmcContractManager/exportXls',
          importExcelUrl: 'api/erp/omc/contractmanager/erpOmcContractManager/importExcel',
          bizCount: '/api/erp/omc/contractmanager/erpOmcContractManager/bizCount',
          checkTaskByProjectId: '/api/erp/omc/project/erpOmcProjectTask/checkTaskByProjectId',
          // 16.8 校验一个项目只能有一个收款合同
          // checkContractById: '/api/erp/omc/contractmanager/erpOmcContractManager/checkContractById',
          queryProjectById: '/api/erp/project/report/erpProjectReport/queryById'
        },
        // 代码生成后需手动设置流程编码
        flowCode: 'dev_erp_omc_contract_manager_004', 
        formUrl: 'erp/omc/contractmanager/ErpOmcContractApplicationForm',
        formUrlMobile: '/pages/synergy/ErpOmcContractApplicationList',
        dictOptions: {},
        beanName: 'ErpFrameworkContractFlow',
        superFieldList: [],
        qdrqRange: [],
        bchteRange: 0,
        processId: '1557651427069722625'
      }
    },
    created() {
      this.getSuperFieldList();
    },
    computed: {
      importExcelUrl: function () {
        return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
      }
    },
    methods: {
      handleDetail: function (record) {
        const _path = this.$route.path
        if (_path.startsWith('/hmhb/') || _path.startsWith('/scy/') || _path.startsWith('/imp/') ||
          _path.startsWith('/erp/')) {
          this.$router.push({
            path: `/erp/omc/contractmanager/ErpOmcFrameworkContractApplicationListDetail/${record.id}`
          })
        } else {
          this.$refs.modalForm.edit(record);
          this.$refs.modalForm.title = '详情';
          this.$refs.modalForm.disableSubmit = true;
        }
      },
      allSearchReset() {
        this.qdrqRange = null
        this.queryParam = { permissionType: '1' };
        this.queryParam.htlx = '3'
        this.queryParam.isOldSystem = '!1' // 老系统合同标识
        this.bizTaskType = null
  
        this.loadData(1);
      },
      beginProcess(record) {
        console.log('val-----')
                    this.$refs.processConfig.visible = true
            this.$refs.processConfig.formUrl = this.formUrl
            this.$refs.processConfig.formUrlMobile = this.formUrlMobile
            this.$refs.processConfig.flowCode = this.flowCode
            this.$refs.processConfig.edit(record, this.processId, this.beanName)
        // getAction(this.url.checkContractById, { id: record.id }).then((res) => {
        //   if (res.success) {
        //     this.$refs.processConfig.visible = true
        //     this.$refs.processConfig.formUrl = this.formUrl
        //     this.$refs.processConfig.formUrlMobile = this.formUrlMobile
        //     this.$refs.processConfig.flowCode = this.flowCode
        //     this.$refs.processConfig.edit(record, this.processId, this.beanName)
        //   } else {
        //     this.$message.warning(res.message)
        //     this.handleClose()
        //   }
        // })
      },
      handleSuccess() {
        this.loadData();
        this.$refs.modalForm.handleCancel()
        this.onClearSelected();
      },
      getDetail(id) {
        this.$router.push({
          path: `/erp/omc/contractmanager/ErpOmcFrameworkContractApplicationListDetail/${id}`
        })
      },
      onDetail(id) {
        const that = this
        this.$nextTick(() => {
          getAction(this.url.queryProjectById, { id }).then((res) => {
            if (res.success) {
              const model = res.result
              that.$refs.projectModalForm.getDetail(model);
              that.$refs.projectModalForm.title = '项目一览表';
            }
          })
        })
      },
      handleTrack(record) {
        console.log(record,'handleTrack-------');
        if(record.lx === 1){
          var params = { flowCode: 'dev_erp_omc_contract_manager_004', dataId: record.id };// 查询条件
          this.$refs.bpmProcessTrackModal.handleTrack(params);
          this.$refs.bpmProcessTrackModal.title = '审批跟踪记录';
        }
        if(record.lx === 2){
          var params = { flowCode: 'dev_erp_omc_contract_manager_005', dataId: record.id };// 查询条件
          this.$refs.bpmProcessTrackModal.handleTrack(params);
          this.$refs.bpmProcessTrackModal.title = '审批跟踪记录';
        }
    },
      handleEdit: function (record) {
        console.log(record,'record-------');
        if(record.lx === 1){
          this.flowCode = 'dev_erp_omc_contract_manager_004'
        } else {
          this.flowCode = 'dev_erp_omc_contract_manager_005'
        }
      this.$refs.modalForm.edit(record);
      this.$refs.modalForm.title = '编辑';
      this.$refs.modalForm.disableSubmit = false;
    },
      handleAdd: function () {
        this.$refs.modalForm.add('3')
        this.$refs.modalForm.title = '新增'
        this.$refs.modalForm.disableSubmit = false
        this.flowCode = 'dev_erp_omc_contract_manager_004'

      },
      handleAdd2: function () {
        this.$refs.modalForm.add2('3')
        this.$refs.modalForm.title = '变更'
        this.flowCode = 'dev_erp_omc_contract_manager_005'
        this.$refs.modalForm.disableSubmit = false
      },
      getSuperFieldList() {
        let fieldList = [];
        fieldList.push({ type: 'string', value: 'htbh', text: '合同编号', dictCode: '' })
        fieldList.push({ type: 'int', value: 'htlx', text: '合同类型', dictCode: 'htlx_type' })
        fieldList.push({ type: 'string', value: 'htmc', text: '合同名称', dictCode: '' })
        fieldList.push({ type: 'string', value: 'xmmc', text: '项目名称', dictCode: '' })
        fieldList.push({ type: 'string', value: 'xmbh', text: '项目编号', dictCode: '' })
        fieldList.push({ type: 'string', value: 'jytd', text: '经营团队', dictCode: '' })
        fieldList.push({ type: 'int', value: 'yjgsnd', text: '业绩归属年度', dictCode: 'yjgsnd' })
        fieldList.push({ type: 'string', value: 'qddw', text: '签订单位', dictCode: '' })
        fieldList.push({ type: 'string', value: 'xmcjr', text: '项目承接人', dictCode: '' })
        fieldList.push({ type: 'string', value: 'yzdw', text: '业主单位', dictCode: '' })
        fieldList.push({ type: 'string', value: 'lxr', text: '联系人', dictCode: '' })
        fieldList.push({ type: 'string', value: 'lxfs', text: '联系方式', dictCode: '' })
        fieldList.push({ type: 'date', value: 'qdrq', text: '签订日期' })
        fieldList.push({ type: 'int', value: 'sfyz', text: '是否用印', dictCode: 'yn' })
        fieldList.push({ type: 'string', value: 'yzlx', text: '印章类型', dictCode: 'yzlx_type' })
        fieldList.push({ type: 'int', value: 'yyfs', text: '用印份数', dictCode: '' })
        fieldList.push({ type: 'int', value: 'glskht', text: '关联收款合同', dictCode: 'yn' })
        fieldList.push({ type: 'string', value: 'skhtmc', text: '收款合同名称', dictCode: '' })
        fieldList.push({ type: 'string', value: 'jf', text: '甲方', dictCode: '' })
        fieldList.push({ type: 'string', value: 'yf', text: '乙方', dictCode: '' })
        fieldList.push({ type: 'int', value: 'skhte', text: '收款合同额', dictCode: '' })
        fieldList.push({ type: 'string', value: 'skhtedx', text: '收款合同额大写', dictCode: '' })
        fieldList.push({ type: 'int', value: 'bchte', text: '本次合同额', dictCode: '' })
        fieldList.push({ type: 'string', value: 'bchtedx', text: '本次合同额大写', dictCode: '' })
        fieldList.push({ type: 'date', value: 'fwqx', text: '服务期限' })
        fieldList.push({ type: 'string', value: 'bpmStatus', text: '状态', dictCode: '' })
        this.superFieldList = fieldList
      },
      handleReset() {
        this.qdrqRange = [];
        this.searchReset();
      },
      handleQuery() {
        this.searchQuery()
      }
    }
  }
  </script>
  <style scoped lang="less">
  @import '~@assets/less/common.less';
  </style>
  